import request from '@/utils/request'
/**
 * 获取电影列表
 */
export function getList(data) {
    return request({
        url: '/video/getList',
        method: 'post',
        data
    })
}
/**
 * 删除电影
 *  */
export function deleteVideo(params) {
    return request.get('/video/deleteVideo', { params })
}
/**
 * 查看视频详情
 *  */
export function videoDetail(params) {
    return request.get('/video/videoDetail', { params })
}
/**
 * 搜索电影
 *  */
export function searchVideo(params) {
    return request.get('/video/searchByQuery', { params })
}
/**
 *保存修改信息
 *  */
export function updateVideoInfo(data) {
    return request.post('/video/updateVideoInfo', data)
}
/**
 * 添加电影
 *  */
export function addNewVideo(data) {
    return request.post('/video/addVideo', data)
}
/**
 *更新集结内容
 *  */
export function updaQisimInfo(data) {
    return request.post('/video/updaQisimInfo', data)
}
/**
 *更新集结内容
 *  */
export function deleteQisim(params) {
    return request.get('/video/deleteQisim', { params })
}
/**
 *电影分类获取
 *  */
export function getVideoSort(params) {
    return request.get('/sort/getVideoSorts', { params })
}

/**
 *保存分类信息
 *  */
export function saveVideoSort(data) {
    return request.post('/sort/saveVideoSort', data)
}
/**
 *获取广告配置
 *  */
export function getAdConfig(params) {
    return request.get('/advertise/getAdConfig', { params })
}
/**
 *保存广告配置
 *  */
export function setAdConfig(data) {
    return request.post('/advertise/setAdConfig', data)
}
/**
 *保存广告配置
 *  */
export function getFeedbackList(params) {
    return request.get('/feedback/getList', { params })
}